package com.feemanage.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feemanage.domain.BizProjectOutboundMain;
import com.feemanage.domain.vo.BizProjectOutboundMainVo;
import com.feemanage.domain.vo.ProjectOutboundMainVO;
import com.feemanage.domain.vo.ProjectOutboundVo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface bizProjectOutboundMainMapper extends BaseMapper<BizProjectOutboundMain> {


    IPage<BizProjectOutboundMainVo> selectPageList(@Param("page") Page<BizProjectOutboundMainVo> page, @Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    ProjectOutboundMainVO selectByProjectId(@Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    ProjectOutboundMainVO selectEditMain(@Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    List<ProjectOutboundVo>  selectByProjectIdList(@Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    List<ProjectOutboundVo>  selectEditList(@Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    List<ProjectOutboundVo>  selectCheckList(@Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    List<HashMap<String, Integer>> selectListTotal(@Param(Constants.WRAPPER) QueryWrapper<BizProjectOutboundMain> wrapper);

    void updateCooperationUnit(ProjectOutboundVo vo);
}
